Optimal. Leaf size=309 \[ \frac {e \sqrt {a^2+2 a b x^2+b^2 x^4} \left (4 c d-e^2\right ) \left (-16 a d^2+12 b c d-7 b e^2\right ) \tanh ^{-1}\left (\frac {2 d x+e}{2 \sqrt {d} \sqrt {c+d x^2+e x}}\right )}{256 d^{9/2} \left (a+b x^2\right )}+\frac {e \sqrt {a^2+2 a b x^2+b^2 x^4} (2 d x+e) \sqrt {c+d x^2+e x} \left (-16 a d^2+12 b c d-7 b e^2\right )}{128 d^4 \left (a+b x^2\right )}-\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \left (c+d x^2+e x\right )^{3/2} \left (-80 a d^2+32 b c d+42 b d e x-35 b e^2\right )}{240 d^3 \left (a+b x^2\right )}+\frac {b x^2 \sqrt {a^2+2 a b x^2+b^2 x^4} \left (c+d x^2+e x\right )^{3/2}}{5 d \left (a+b x^2\right )} \]
________________________________________________________________________________________
Rubi [A] time = 0.63, antiderivative size = 309, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {6744, 1653, 779, 612, 621, 206} \begin {gather*} -\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \left (c+d x^2+e x\right )^{3/2} \left (-80 a d^2+32 b c d+42 b d e x-35 b e^2\right )}{240 d^3 \left (a+b x^2\right )}+\frac {e \sqrt {a^2+2 a b x^2+b^2 x^4} (2 d x+e) \sqrt {c+d x^2+e x} \left (-16 a d^2+12 b c d-7 b e^2\right )}{128 d^4 \left (a+b x^2\right )}+\frac {e \sqrt {a^2+2 a b x^2+b^2 x^4} \left (4 c d-e^2\right ) \left (-16 a d^2+12 b c d-7 b e^2\right ) \tanh ^{-1}\left (\frac {2 d x+e}{2 \sqrt {d} \sqrt {c+d x^2+e x}}\right )}{256 d^{9/2} \left (a+b x^2\right )}+\frac {b x^2 \sqrt {a^2+2 a b x^2+b^2 x^4} \left (c+d x^2+e x\right )^{3/2}}{5 d \left (a+b x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 612
Rule 621
Rule 779
Rule 1653
Rule 6744
Rubi steps
\begin {align*} \int x \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4} \, dx &=\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \int x \left (2 a b+2 b^2 x^2\right ) \sqrt {c+e x+d x^2} \, dx}{2 a b+2 b^2 x^2}\\ &=\frac {b x^2 \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{5 d \left (a+b x^2\right )}+\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \int x \left (-2 b (2 b c-5 a d)-7 b^2 e x\right ) \sqrt {c+e x+d x^2} \, dx}{5 d \left (2 a b+2 b^2 x^2\right )}\\ &=\frac {b x^2 \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{5 d \left (a+b x^2\right )}-\frac {\left (32 b c d-80 a d^2-35 b e^2+42 b d e x\right ) \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{240 d^3 \left (a+b x^2\right )}+\frac {\left (b e \left (12 b c d-16 a d^2-7 b e^2\right ) \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \int \sqrt {c+e x+d x^2} \, dx}{16 d^3 \left (2 a b+2 b^2 x^2\right )}\\ &=\frac {e \left (12 b c d-16 a d^2-7 b e^2\right ) (e+2 d x) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{128 d^4 \left (a+b x^2\right )}+\frac {b x^2 \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{5 d \left (a+b x^2\right )}-\frac {\left (32 b c d-80 a d^2-35 b e^2+42 b d e x\right ) \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{240 d^3 \left (a+b x^2\right )}+\frac {\left (b e \left (4 c d-e^2\right ) \left (12 b c d-16 a d^2-7 b e^2\right ) \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \int \frac {1}{\sqrt {c+e x+d x^2}} \, dx}{128 d^4 \left (2 a b+2 b^2 x^2\right )}\\ &=\frac {e \left (12 b c d-16 a d^2-7 b e^2\right ) (e+2 d x) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{128 d^4 \left (a+b x^2\right )}+\frac {b x^2 \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{5 d \left (a+b x^2\right )}-\frac {\left (32 b c d-80 a d^2-35 b e^2+42 b d e x\right ) \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{240 d^3 \left (a+b x^2\right )}+\frac {\left (b e \left (4 c d-e^2\right ) \left (12 b c d-16 a d^2-7 b e^2\right ) \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \operatorname {Subst}\left (\int \frac {1}{4 d-x^2} \, dx,x,\frac {e+2 d x}{\sqrt {c+e x+d x^2}}\right )}{64 d^4 \left (2 a b+2 b^2 x^2\right )}\\ &=\frac {e \left (12 b c d-16 a d^2-7 b e^2\right ) (e+2 d x) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{128 d^4 \left (a+b x^2\right )}+\frac {b x^2 \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{5 d \left (a+b x^2\right )}-\frac {\left (32 b c d-80 a d^2-35 b e^2+42 b d e x\right ) \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{240 d^3 \left (a+b x^2\right )}+\frac {e \left (4 c d-e^2\right ) \left (12 b c d-16 a d^2-7 b e^2\right ) \sqrt {a^2+2 a b x^2+b^2 x^4} \tanh ^{-1}\left (\frac {e+2 d x}{2 \sqrt {d} \sqrt {c+e x+d x^2}}\right )}{256 d^{9/2} \left (a+b x^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.33, size = 214, normalized size = 0.69 \begin {gather*} \frac {\sqrt {\left (a+b x^2\right )^2} \left (2 \sqrt {d} \sqrt {c+x (d x+e)} \left (80 a d^2 \left (8 c d+8 d^2 x^2+2 d e x-3 e^2\right )+b \left (-256 c^2 d^2+4 c d \left (32 d^2 x^2-58 d e x+115 e^2\right )+384 d^4 x^4+48 d^3 e x^3-56 d^2 e^2 x^2+70 d e^3 x-105 e^4\right )\right )+15 e \left (e^2-4 c d\right ) \left (16 a d^2-12 b c d+7 b e^2\right ) \tanh ^{-1}\left (\frac {2 d x+e}{2 \sqrt {d} \sqrt {c+x (d x+e)}}\right )\right )}{3840 d^{9/2} \left (a+b x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.82, size = 239, normalized size = 0.77 \begin {gather*} \frac {\sqrt {\left (a+b x^2\right )^2} \left (\frac {\left (64 a c d^3 e-16 a d^2 e^3-48 b c^2 d^2 e+40 b c d e^3-7 b e^5\right ) \log \left (-2 \sqrt {d} \sqrt {c+d x^2+e x}+2 d x+e\right )}{256 d^{9/2}}+\frac {\sqrt {c+d x^2+e x} \left (640 a c d^3+640 a d^4 x^2+160 a d^3 e x-240 a d^2 e^2-256 b c^2 d^2+128 b c d^3 x^2-232 b c d^2 e x+460 b c d e^2+384 b d^4 x^4+48 b d^3 e x^3-56 b d^2 e^2 x^2+70 b d e^3 x-105 b e^4\right )}{1920 d^4}\right )}{a+b x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.96, size = 469, normalized size = 1.52 \begin {gather*} \left [\frac {15 \, {\left (7 \, b e^{5} - 8 \, {\left (5 \, b c d - 2 \, a d^{2}\right )} e^{3} + 16 \, {\left (3 \, b c^{2} d^{2} - 4 \, a c d^{3}\right )} e\right )} \sqrt {d} \log \left (8 \, d^{2} x^{2} + 8 \, d e x + 4 \, \sqrt {d x^{2} + e x + c} {\left (2 \, d x + e\right )} \sqrt {d} + 4 \, c d + e^{2}\right ) + 4 \, {\left (384 \, b d^{5} x^{4} + 48 \, b d^{4} e x^{3} - 256 \, b c^{2} d^{3} + 640 \, a c d^{4} - 105 \, b d e^{4} + 20 \, {\left (23 \, b c d^{2} - 12 \, a d^{3}\right )} e^{2} + 8 \, {\left (16 \, b c d^{4} + 80 \, a d^{5} - 7 \, b d^{3} e^{2}\right )} x^{2} + 2 \, {\left (35 \, b d^{2} e^{3} - 4 \, {\left (29 \, b c d^{3} - 20 \, a d^{4}\right )} e\right )} x\right )} \sqrt {d x^{2} + e x + c}}{7680 \, d^{5}}, -\frac {15 \, {\left (7 \, b e^{5} - 8 \, {\left (5 \, b c d - 2 \, a d^{2}\right )} e^{3} + 16 \, {\left (3 \, b c^{2} d^{2} - 4 \, a c d^{3}\right )} e\right )} \sqrt {-d} \arctan \left (\frac {\sqrt {d x^{2} + e x + c} {\left (2 \, d x + e\right )} \sqrt {-d}}{2 \, {\left (d^{2} x^{2} + d e x + c d\right )}}\right ) - 2 \, {\left (384 \, b d^{5} x^{4} + 48 \, b d^{4} e x^{3} - 256 \, b c^{2} d^{3} + 640 \, a c d^{4} - 105 \, b d e^{4} + 20 \, {\left (23 \, b c d^{2} - 12 \, a d^{3}\right )} e^{2} + 8 \, {\left (16 \, b c d^{4} + 80 \, a d^{5} - 7 \, b d^{3} e^{2}\right )} x^{2} + 2 \, {\left (35 \, b d^{2} e^{3} - 4 \, {\left (29 \, b c d^{3} - 20 \, a d^{4}\right )} e\right )} x\right )} \sqrt {d x^{2} + e x + c}}{3840 \, d^{5}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.60, size = 360, normalized size = 1.17 \begin {gather*} \frac {1}{1920} \, \sqrt {d x^{2} + x e + c} {\left (2 \, {\left (4 \, {\left (6 \, {\left (8 \, b x \mathrm {sgn}\left (b x^{2} + a\right ) + \frac {b e \mathrm {sgn}\left (b x^{2} + a\right )}{d}\right )} x + \frac {16 \, b c d^{3} \mathrm {sgn}\left (b x^{2} + a\right ) + 80 \, a d^{4} \mathrm {sgn}\left (b x^{2} + a\right ) - 7 \, b d^{2} e^{2} \mathrm {sgn}\left (b x^{2} + a\right )}{d^{4}}\right )} x - \frac {116 \, b c d^{2} e \mathrm {sgn}\left (b x^{2} + a\right ) - 80 \, a d^{3} e \mathrm {sgn}\left (b x^{2} + a\right ) - 35 \, b d e^{3} \mathrm {sgn}\left (b x^{2} + a\right )}{d^{4}}\right )} x - \frac {256 \, b c^{2} d^{2} \mathrm {sgn}\left (b x^{2} + a\right ) - 640 \, a c d^{3} \mathrm {sgn}\left (b x^{2} + a\right ) - 460 \, b c d e^{2} \mathrm {sgn}\left (b x^{2} + a\right ) + 240 \, a d^{2} e^{2} \mathrm {sgn}\left (b x^{2} + a\right ) + 105 \, b e^{4} \mathrm {sgn}\left (b x^{2} + a\right )}{d^{4}}\right )} - \frac {{\left (48 \, b c^{2} d^{2} e \mathrm {sgn}\left (b x^{2} + a\right ) - 64 \, a c d^{3} e \mathrm {sgn}\left (b x^{2} + a\right ) - 40 \, b c d e^{3} \mathrm {sgn}\left (b x^{2} + a\right ) + 16 \, a d^{2} e^{3} \mathrm {sgn}\left (b x^{2} + a\right ) + 7 \, b e^{5} \mathrm {sgn}\left (b x^{2} + a\right )\right )} \log \left ({\left | -2 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + x e + c}\right )} \sqrt {d} - e \right |}\right )}{256 \, d^{\frac {9}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 442, normalized size = 1.43 \begin {gather*} \frac {\sqrt {\left (b \,x^{2}+a \right )^{2}}\, \left (-960 a c \,d^{4} e \ln \left (\frac {2 d x +e +2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {d}}{2 \sqrt {d}}\right )+240 a \,d^{3} e^{3} \ln \left (\frac {2 d x +e +2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {d}}{2 \sqrt {d}}\right )+720 b \,c^{2} d^{3} e \ln \left (\frac {2 d x +e +2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {d}}{2 \sqrt {d}}\right )-600 b c \,d^{2} e^{3} \ln \left (\frac {2 d x +e +2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {d}}{2 \sqrt {d}}\right )+105 b d \,e^{5} \ln \left (\frac {2 d x +e +2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {d}}{2 \sqrt {d}}\right )-960 \sqrt {d \,x^{2}+e x +c}\, a \,d^{\frac {9}{2}} e x +720 \sqrt {d \,x^{2}+e x +c}\, b c \,d^{\frac {7}{2}} e x +768 \left (d \,x^{2}+e x +c \right )^{\frac {3}{2}} b \,d^{\frac {9}{2}} x^{2}-420 \sqrt {d \,x^{2}+e x +c}\, b \,d^{\frac {5}{2}} e^{3} x -480 \sqrt {d \,x^{2}+e x +c}\, a \,d^{\frac {7}{2}} e^{2}+360 \sqrt {d \,x^{2}+e x +c}\, b c \,d^{\frac {5}{2}} e^{2}-672 \left (d \,x^{2}+e x +c \right )^{\frac {3}{2}} b \,d^{\frac {7}{2}} e x -210 \sqrt {d \,x^{2}+e x +c}\, b \,d^{\frac {3}{2}} e^{4}+1280 \left (d \,x^{2}+e x +c \right )^{\frac {3}{2}} a \,d^{\frac {9}{2}}-512 \left (d \,x^{2}+e x +c \right )^{\frac {3}{2}} b c \,d^{\frac {7}{2}}+560 \left (d \,x^{2}+e x +c \right )^{\frac {3}{2}} b \,d^{\frac {5}{2}} e^{2}\right )}{3840 \left (b \,x^{2}+a \right ) d^{\frac {11}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int x\,\sqrt {{\left (b\,x^2+a\right )}^2}\,\sqrt {d\,x^2+e\,x+c} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________